package com.hs.service;

import com.github.pagehelper.PageInfo;
import com.hs.entity.Question;

import java.util.List;

public interface QuestionService {
    int addQuestion(Question question);
    int deleteQuestion(int id);
    int updateQuestion(Question question);
    Question getQuestionById(int id);
    PageInfo<Question> getQuestionByPage(int pageNum, int pageSize);
}
